from django.urls import re_path
from . import views

urlpatterns = [
    # 个人中心显示路由
    re_path('^api/v1.0/user$', views.UserInfoView.as_view()),
    # 修改用户名
    re_path('^api/v1.0/user/name$', views.UserPutView.as_view()),
    # 上传头像
    re_path('^api/v1.0/user/avatar$',views.Upload_avatar.as_view()),
    # re_path(r'^mobiles/(?P<mobile>1[3-9]\d{9})/count/$', views.MobileCountView.as_view()),
    re_path(r'^api/v1.0/users$', views.RegisterView.as_view()),
    re_path('^api/v1.0/user/avatar$',views.Upload_avatar.as_view()),
    #用户名登录接口 判断用户名是否登录 退出登录
    re_path('^api/v1.0/session$', views.userLoginView.as_view()),

]

